DataCollection | ComponentOne
C1.DataCollection.EntityFrameworkCore Assembly / C1.DataCollection.EntityFrameworkCore Namespace / C1EntityFrameworkCoreCursorDataCollectionBase<T> Class / InsertAsyncOverride Method
The index where the item is inserted.
The item inserted.
The cancellation token.

In This Topic
    InsertAsyncOverride Method (C1EntityFrameworkCoreCursorDataCollectionBase<T>)
    In This Topic
    This method is called when an item is inserted in the collection.
    Syntax
    'Declaration
     
    Protected Overridable Function InsertAsyncOverride( _
       ByVal index As Integer, _
       ByVal item As T, _
       ByVal cancellationToken As CancellationToken _
    ) As Task(Of Integer)
    protected virtual Task<int> InsertAsyncOverride( 
       int index,
       T item,
       CancellationToken cancellationToken
    )

    Parameters

    index
    The index where the item is inserted.
    item
    The item inserted.
    cancellationToken
    The cancellation token.
    Remarks
    CanInsert must return true to enable this method.
    See Also